﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="Conteudo" targetNamespace="http://tempuri.org/Conteudo.xsd" xmlns:mstns="http://tempuri.org/Conteudo.xsd" xmlns="http://tempuri.org/Conteudo.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="igrejaConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="igrejaConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.htmltortf.Properties.Settings.GlobalReference.Default.igrejaConnectionString" Provider="Microsoft.SqlServerCe.Client.3.5" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ConteudoTableAdapter" GeneratorDataComponentClassName="ConteudoTableAdapter" Name="Conteudo" UserDataComponentName="ConteudoTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="igrejaConnectionString (Settings)" DbObjectName="Conteudo" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [Conteudo] WHERE (([conteudo_id] = @p1))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@p1" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="conteudo_id" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [Conteudo] ([livro_id], [capitulo], [versiculo], [palavra]) VALUES (@p1, @p2, @p3, @p4)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@p1" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="livro_id" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@p2" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="capitulo" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@p3" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="versiculo" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@p4" Precision="0" ProviderType="NText" Scale="0" Size="0" SourceColumn="palavra" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT        *
FROM            Conteudo</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [Conteudo] SET [livro_id] = @p1, [capitulo] = @p2, [versiculo] = @p3, [palavra] = @p4 WHERE (([conteudo_id] = @p5))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@p1" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="livro_id" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@p2" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="capitulo" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@p3" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="versiculo" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@p4" Precision="0" ProviderType="NText" Scale="0" Size="0" SourceColumn="palavra" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@p5" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="conteudo_id" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="conteudo_id" DataSetColumn="conteudo_id" />
              <Mapping SourceColumn="livro_id" DataSetColumn="livro_id" />
              <Mapping SourceColumn="capitulo" DataSetColumn="capitulo" />
              <Mapping SourceColumn="versiculo" DataSetColumn="versiculo" />
              <Mapping SourceColumn="palavra" DataSetColumn="palavra" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="igrejaConnectionString (Settings)" DbObjectType="Unknown" FillMethodModifier="Public" FillMethodName="FillByCapituloMax" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataByCapituloMax" GeneratorSourceName="FillByCapituloMax" GetMethodModifier="Public" GetMethodName="GetDataByCapituloMax" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataByCapituloMax" UserSourceName="FillByCapituloMax">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT        MAX(capitulo) AS capitulo
FROM            Conteudo
WHERE        (livro_id = @livro_id)
GROUP BY livro_id</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="livro_id" ColumnName="livro_id" DataSourceName="Conteudo" DataTypeServer="int(4)" DbType="Int32" Direction="Input" ParameterName="@livro_id" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="livro_id" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="igrejaConnectionString (Settings)" DbObjectName="Conteudo" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillByLivroCapitulo" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataByLivroCapitulo" GeneratorSourceName="FillByLivroCapitulo" GetMethodModifier="Public" GetMethodName="GetDataByLivroCapitulo" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataByLivroCapitulo" UserSourceName="FillByLivroCapitulo">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT        conteudo_id, livro_id, capitulo, versiculo, palavra
FROM            Conteudo
WHERE        (livro_id = @livro_id) AND (capitulo = @capitulo) AND (@verinicial &gt; 0) AND (versiculo &gt;= @verinicial) AND (@verfinal &gt; 0) AND (versiculo &lt;= @verfinal) OR
                         (livro_id = @livro_id) AND (capitulo = @capitulo) AND (@verinicial &gt; 0) AND (versiculo &gt;= @verinicial) AND (@verfinal = 0) OR
                         (livro_id = @livro_id) AND (capitulo = @capitulo) AND (@verinicial = 0)
ORDER BY versiculo</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="livro_id" ColumnName="livro_id" DataSourceName="Conteudo" DataTypeServer="int(4)" DbType="Int32" Direction="Input" ParameterName="@livro_id" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="livro_id" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="capitulo" ColumnName="capitulo" DataSourceName="Conteudo" DataTypeServer="int(4)" DbType="Int32" Direction="Input" ParameterName="@capitulo" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="capitulo" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="verinicial" ColumnName="versiculo" DataSourceName="Conteudo" DataTypeServer="int(4)" DbType="Int32" Direction="Input" ParameterName="@verinicial" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="versiculo" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="verfinal" ColumnName="versiculo" DataSourceName="Conteudo" DataTypeServer="int(4)" DbType="Int32" Direction="Input" ParameterName="@verfinal" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="versiculo" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="igrejaConnectionString (Settings)" DbObjectType="Unknown" FillMethodModifier="Public" FillMethodName="FillByVersiculoMax" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataByVersiculoMax" GeneratorSourceName="FillByVersiculoMax" GetMethodModifier="Public" GetMethodName="GetDataByVersiculoMax" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataByVersiculoMax" UserSourceName="FillByVersiculoMax">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT        MAX(versiculo) AS versiculo
FROM            Conteudo
WHERE        (livro_id = @livro_id) AND (capitulo = @capitulo)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="livro_id" ColumnName="livro_id" DataSourceName="Conteudo" DataTypeServer="int(4)" DbType="Int32" Direction="Input" ParameterName="@livro_id" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="livro_id" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="capitulo" ColumnName="capitulo" DataSourceName="Conteudo" DataTypeServer="int(4)" DbType="Int32" Direction="Input" ParameterName="@capitulo" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="capitulo" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="Conteudo" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:Generator_UserDSName="Conteudo" msprop:Generator_DataSetName="Conteudo" msprop:EnableTableAdapterManager="true">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="Conteudo" msprop:Generator_UserTableName="Conteudo" msprop:Generator_RowDeletedName="ConteudoRowDeleted" msprop:Generator_RowChangedName="ConteudoRowChanged" msprop:Generator_RowClassName="ConteudoRow" msprop:Generator_RowChangingName="ConteudoRowChanging" msprop:Generator_RowEvArgName="ConteudoRowChangeEvent" msprop:Generator_RowEvHandlerName="ConteudoRowChangeEventHandler" msprop:Generator_TableClassName="ConteudoDataTable" msprop:Generator_TableVarName="tableConteudo" msprop:Generator_RowDeletingName="ConteudoRowDeleting" msprop:Generator_TablePropName="_Conteudo">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="conteudo_id" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_UserColumnName="conteudo_id" msprop:Generator_ColumnVarNameInTable="columnconteudo_id" msprop:Generator_ColumnPropNameInRow="conteudo_id" msprop:Generator_ColumnPropNameInTable="conteudo_idColumn" type="xs:int" />
              <xs:element name="livro_id" msprop:Generator_UserColumnName="livro_id" msprop:Generator_ColumnVarNameInTable="columnlivro_id" msprop:Generator_ColumnPropNameInRow="livro_id" msprop:Generator_ColumnPropNameInTable="livro_idColumn" type="xs:int" minOccurs="0" />
              <xs:element name="capitulo" msprop:Generator_UserColumnName="capitulo" msprop:Generator_ColumnVarNameInTable="columncapitulo" msprop:Generator_ColumnPropNameInRow="capitulo" msprop:Generator_ColumnPropNameInTable="capituloColumn" type="xs:int" minOccurs="0" />
              <xs:element name="versiculo" msprop:Generator_UserColumnName="versiculo" msprop:Generator_ColumnVarNameInTable="columnversiculo" msprop:Generator_ColumnPropNameInRow="versiculo" msprop:Generator_ColumnPropNameInTable="versiculoColumn" type="xs:int" minOccurs="0" />
              <xs:element name="palavra" msprop:Generator_UserColumnName="palavra" msprop:Generator_ColumnVarNameInTable="columnpalavra" msprop:Generator_ColumnPropNameInRow="palavra" msprop:Generator_ColumnPropNameInTable="palavraColumn" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="536870911" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:Conteudo" />
      <xs:field xpath="mstns:conteudo_id" />
    </xs:unique>
  </xs:element>
</xs:schema>